<?php	// +----------------------------------------------------------------------	// | 海报	// +----------------------------------------------------------------------	// | Copyright (c) 2015-2024 http://www.yicmf.com, All rights reserved.	// +----------------------------------------------------------------------	// | Author: 微尘 <yicmf@qq.com>	// +----------------------------------------------------------------------	namespace app\model\index;    class CreditcardOrder extends Common	{        public function getTypeAttr($value,$data)//poster_image        {            if ($value)            {                return $value;            }else{                return CreditcardProduct::where('id',$data['productId'])->value('type');            }        }    }